import Ember from 'ember';
import GesturesMixin from 'ember-gestures/mixins/recognizers';

export default Ember.Component.extend(GesturesMixin,{
  recognizers: 'tap press',
  classStatic: true,
  classNameBindings: ['classStatic:exp-item','expanded:expanded'],
  expanded: false,
  itemId:null,//标识
  itemName: null,//对应名称
  itemCount: 0,//对应次数
  detailData:[],//明细数据

  actions:{
    tapAction(){
      this.sendAction("itemExpand",this.get("itemId"));
    },
    //添加内容
    cntAddAction(){
      console.log("press in");
      this.sendAction("itemCntAdd",this.get("serviceItem"));
    }
  }

});
